package com.edu.edumanager.service;

import com.edu.edumanager.bean.EduChapter;
import com.edu.edumanager.bean.EduVideo;
import com.edu.edumanager.vo.EduChapterList;
import com.edu.edumanager.vo.EduResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @program: edu-manager
 * @description:
 * @author: Jaime
 * @create: 2021-08-22 20:56
 **/
public interface VideoService {
    /**
     * 上传视频 返回视频对象信息
     * @param file
     * @return
     */
    EduResult uploadVideo(MultipartFile file);

    int addVideo(EduVideo video);

    int deleteVideoByChapterId(Integer chapterId);

    int deleteVideoById(Integer videoId);

    /**
     * 根据videoId过去video对象
     * @param videoId
     * @return
     */
    EduVideo getVideo(Integer videoId);

    /**
     * 更新vide
     * @param video
     * @return
     */
    int updateVideo(EduVideo video);

    int deleteVideoByCourseId(Integer courseId);

    // List<EduChapterList> getChapterList1(Integer courseId);


}
